<?php
class TemplatesController extends AppController {
	var $layout = "template"; 
	var $helpers = array("Html","Common"); 

	function  index(){
		$this->set('title_for_layout', 'Asking.vn');
		$this->set("content","asking");
	}

	function view($id){
		switch($id){
			case 1 :{
				$this->set('title_for_layout', 'Meo beo');
				$this->set("content","Meo beo");
			}
			break;
			case 2 :{
				$this->set('title_for_layout', 'Meo 2');
				$this->set("content","Meo 2");
			}
			break;
			case 3 :{
				$this->set('title_for_layout', 'Meo meo');
				$this->set("content","Meo meo");
			}
			break;
			default :
				$this->set("content","Framwork");
				break;
		}
	}

}
?>